package com.xinchen.aiounlimit.model.repository

object ResultCode {

     /// response success code
    const val SUCCESS_CODE = "200"
     ///  自定义的error code, 服务端如果不按约定的code msg 格式返回, 这里自定义一个错误码
    const val ERROR_CODE = "999"

    fun isSuccess (code: String): Boolean{
        return code == SUCCESS_CODE
    }
}